{% include 'Common/Header.phtml' %}
<aside class="main-sidebar">

    <section class="sidebar">

        <ul class="sidebar-menu">
            <li class="header">导航</li>
            {%for k,v in sidenav%}
            <li class="{%if k==nowmodule%}active{%endif%} treeview">
                <a href="#"><i class="fa fa-link"></i> <span>{{k}}</span>
                    <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
                </a>

                <ul class="treeview-menu">
                    {%for url,title in v%}
                    <li {%if url==activeurl%}class="active"{%endif%}><a href="/acp/{{url}}/index">{{title}}</a></li>
                    {%endfor%}
                </ul>
            </li>
            {%endfor%}

        </ul>

    </section>

</aside>

<div class="content-wrapper">

    <section class="content-header">
        <div class="row">
            <div class="col-sm-12" style="margin-bottom: -30px;">
                <ol class="breadcrumb text-left">
                    <li><a href="#"><i class="fa fa-dashboard"></i> {{nowmodule}}</a></li>
                    <li class="active"><a href="/acp/{{navlink}}/index" >{{nowaction}}</a></li>
                </ol>
            </div>
        </div>
    </section>

    <section class="content">
        {%if errormsg%}
        <div class="alert alert-danger alert-dismissible">
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
            <h4>错误!</h4>
            <p>{{errormsg}}</p>
        </div>
        {%endif%}
        {% block content%}{% endblock %}

    </section>

</div>

{% block extjs %}{%endblock%}
{% include 'Common/Footer.phtml' %}